package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="DM_LSBHZT"
 *     
*/
public class DmLsbhzt implements Serializable {

    /** identifier field */
    private String lsbhztDm;

    /** nullable persistent field */
    private String lsbhztMc;

    /** full constructor */
    public DmLsbhzt(String lsbhztDm, String lsbhztMc) {
        this.lsbhztDm = lsbhztDm;
        this.lsbhztMc = lsbhztMc;
    }

    /** default constructor */
    public DmLsbhzt() {
    }

    /** minimal constructor */
    public DmLsbhzt(String lsbhztDm) {
        this.lsbhztDm = lsbhztDm;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="LSBHZT_DM"
     *         
     */
    public String getLsbhztDm() {
        return this.lsbhztDm;
    }

    public void setLsbhztDm(String lsbhztDm) {
        this.lsbhztDm = lsbhztDm;
    }

    /** 
     *            @hibernate.property
     *             column="LSBHZT_MC"
     *             length="30"
     *         
     */
    public String getLsbhztMc() {
        return this.lsbhztMc;
    }

    public void setLsbhztMc(String lsbhztMc) {
        this.lsbhztMc = lsbhztMc;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("lsbhztDm", getLsbhztDm())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof DmLsbhzt) ) return false;
        DmLsbhzt castOther = (DmLsbhzt) other;
        return new EqualsBuilder()
            .append(this.getLsbhztDm(), castOther.getLsbhztDm())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getLsbhztDm())
            .toHashCode();
    }

}
